
#include "AbstractWidget.hpp"

namespace NSCore {

	AbstractWidget::AbstractWidget(QWidget* p) :
		QWidget(p),
		AbstractObject()
	{
		m_layout = new QVBoxLayout;
		m_layout->setContentsMargins(0, 0, 0, 0);
		m_layout->setSpacing(0);

		setLayout(m_layout);
	}

	AbstractWidget::~AbstractWidget() {/*virtual*/ }


	void AbstractWidget::addWidget(QWidget* _widget) {
		m_layout->addWidget(_widget);

	}

	void AbstractWidget::addStretch(int stretch) {
		m_layout->addStretch(stretch);

	}

}